package com.cyy.common.pojo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class LoginReq implements Serializable {
    @Serial
    private static final long serialVersionUID = -4257570436642516703L;

    @NotBlank(message = "username is required")
    @Schema(description = "用户名")
    private String username;

    @NotBlank(message = "password is required")
    @Schema(description = "密码", example = "123456")
    private String password;

    @NotBlank(message = "captcha is required")
    @Schema(description = "验证码", example = "Naxo29")
    private String captcha;

    @NotBlank(message = "captchaKey is required")
    @Schema(description = "验证码绑定的key:由前端生成", example = "sxiii")
    private String captchaKey;

    @Schema(description = "记住我", example = "false", defaultValue = "false")
    private Boolean rememberMe = false;
}
